﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace OurWedding1.Models
{
    [MetadataType(typeof(GuestGroupBuddy))]
    public partial class GuestGroup
    {

    }
    public class GuestGroupBuddy
    {
        [Required(ErrorMessageResourceType = typeof (Resources), ErrorMessageResourceName = "GuestGroup_Name_Required")]
        [Display(ResourceType = typeof (Resources), Name = "GuestGroup_Name")]
        public string Name { get; set; }

        
        [Display(ResourceType = typeof (Resources), Name = "GuestGroup_Adress")]
        public string Adress { get; set; }

        
        [Display(ResourceType = typeof (Resources), Name = "GuestGroup_City")]
        public string City { get; set; }

        
        [Display(ResourceType = typeof (Resources), Name = "GuestGroup_PostCode")]
        [DataType(DataType.PostalCode)]
        public string PostCode { get; set; }
       
        [Display(ResourceType = typeof (Resources), Name = "GuestGroup_GuestSideId")]
        [Required(ErrorMessageResourceType = typeof (Resources), ErrorMessageResourceName = "GuestGroup_GuestSideId_Required")]
        public int GuestSideId { get; set; }
        

        [Display(ResourceType = typeof (Resources), Name = "GuestGroup_Guests")]
        public virtual ICollection<Guest> Guests { get; set; }

        [Display(ResourceType = typeof (Resources), Name = "GuestGroup_GuestSideId")]
        public virtual GuestSide GuestSide { get; set; }

        [Display(ResourceType = typeof (Resources), Name = "GuestGroupBuddy_InvitationText")]
        [Required(ErrorMessageResourceType = typeof (Resources), ErrorMessageResourceName = "GuestGroup_InvitationText")]
        public string InvitationText { get; set; }
    }
}